@import '../../wheel/style/component.scss';

@include b(picker-view) {
  @include e(panel) {
    height: 210px;
    position: relative;
    z-index: 600;
    bottom: 0;
    width: 100%;
    background: var(--background-body);
    padding: 20px 0;
  }

  @include e(mask-top,mask-bottom) {
    z-index: 10;
    width: 100%;
    height: 88px;
    pointer-events: none;
    transform: translateZ(0);
  }

  @include e(mask-top) {
    position: absolute;
    top: 0;
    background: linear-gradient(to top, var(--picker-panel-start), var(--picker-panel-end));

    &:after {
      content: "";
      display: block;
      position: absolute;
      border-bottom: 1px solid var(--border-color);
      left: 0;
      bottom: 0;
      width: 100%;
      -webkit-transform-origin: 0 bottom;
      transform-origin: 0 bottom;
    }
  }

  @include e(mask-bottom) {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to bottom, var(--picker-panel-start), var(--picker-panel-end));

    &:before {
      content: "";
      display: block;
      position: absolute;
      border-top: 1px solid var(--border-color);
      left: 0;
      top: 0;
      width: 100%;
      -webkit-transform-origin: 0 top;
      transform-origin: 0 top;
    }
  }

  @include e(view) {
    display: flex;
  }
}
